package com.ruoyi.crm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 收款单对象 receipt
 *
 * @author ruoyi
 * @date 2021-09-01
 */
public class Receipt extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 收款单编号 */
    @Excel(name = "收款单编号")
    private String receiptNo;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 选择源单 */
    @Excel(name = "选择源单")
    private String sourceForm;

    /** 实际收款金额 */
    @Excel(name = "实际收款金额")
    private String collectionAc;

    /** 收款方式 */
    @Excel(name = "收款方式")
    private String collectionType;

    /** 销售负责人 */
    @Excel(name = "销售负责人")
    private String staffFollower;

    /** 收款日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收款日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectionDate;

    /** 审批状态 */
    @Excel(name = "审批状态")
    private String approvalStatus;

    /** 源单已收总额 */
    @Excel(name = "源单已收总额")
    private String sourceAcy;

    /** 源单金额 */
    @Excel(name = "源单金额")
    private String sourceAc;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setReceiptNo(String receiptNo)
    {
        this.receiptNo = receiptNo;
    }

    public String getReceiptNo()
    {
        return receiptNo;
    }
    public void setCustomerName(String customerName)
    {
        this.customerName = customerName;
    }

    public String getCustomerName()
    {
        return customerName;
    }
    public void setSourceForm(String sourceForm)
    {
        this.sourceForm = sourceForm;
    }

    public String getSourceForm()
    {
        return sourceForm;
    }
    public void setCollectionAc(String collectionAc)
    {
        this.collectionAc = collectionAc;
    }

    public String getCollectionAc()
    {
        return collectionAc;
    }
    public void setCollectionType(String collectionType)
    {
        this.collectionType = collectionType;
    }

    public String getCollectionType()
    {
        return collectionType;
    }
    public void setStaffFollower(String staffFollower)
    {
        this.staffFollower = staffFollower;
    }

    public String getStaffFollower()
    {
        return staffFollower;
    }
    public void setCollectionDate(Date collectionDate)
    {
        this.collectionDate = collectionDate;
    }

    public Date getCollectionDate()
    {
        return collectionDate;
    }
    public void setApprovalStatus(String approvalStatus)
    {
        this.approvalStatus = approvalStatus;
    }

    public String getApprovalStatus()
    {
        return approvalStatus;
    }
    public void setSourceAcy(String sourceAcy)
    {
        this.sourceAcy = sourceAcy;
    }

    public String getSourceAcy()
    {
        return sourceAcy;
    }
    public void setSourceAc(String sourceAc)
    {
        this.sourceAc = sourceAc;
    }

    public String getSourceAc()
    {
        return sourceAc;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("receiptNo", getReceiptNo())
                .append("customerName", getCustomerName())
                .append("sourceForm", getSourceForm())
                .append("collectionAc", getCollectionAc())
                .append("collectionType", getCollectionType())
                .append("staffFollower", getStaffFollower())
                .append("collectionDate", getCollectionDate())
                .append("updateTime", getUpdateTime())
                .append("approvalStatus", getApprovalStatus())
                .append("sourceAcy", getSourceAcy())
                .append("sourceAc", getSourceAc())
                .toString();
    }
}